package com.okami.clazz.paradigm;

/**
 * @author: TanJingyu
 * @create: 2021-03-09 16:00
 **/
public class Manipulator<T extends HasF> {
    private T obj;

    Manipulator(T x) {
        obj = x;
    }

    public void manipulate() {
        obj.f();
    }

}

class HasF {
    void f(){}
}
